package figure8.GUI;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

import javax.sound.sampled.BooleanControl;
import javax.sound.sampled.Control;
import javax.sound.sampled.FloatControl;
import javax.swing.JButton;
import javax.swing.JLabel;

import figure8.Controller;
import figure8.DrumMachineTrack;
import figure8.events.TrackChangeListener;
import figure8.events.TrackChangedEvent;

/**
 * A track panel represents a distinct track in the project, and should be
 * composed of a panel with the controls for the track (pan, volume, etc) and a
 * panel to display the track (e.g waveform or midi notes).
 */
public class DrumMachineTrackPanel extends TrackPanel implements TrackChangeListener {
	private JLabel test;
	private BooleanControl muteCont;
	private FloatControl volCont;
	private Control[] cntrls = null;
	DrumMachineGraph graph;

	public DrumMachineTrackPanel(final Controller controller, File[] drums, final DrumMachineTrack track) {
		super(track);
		graph = new DrumMachineGraph(track);
		this.add(new DrumMachineSettingsPanel(controller, track, graph), BorderLayout.LINE_START);
		this.add(graph);
		
		track.addChangeListener(this);
	}

	public void settings() {
	}
	
	@Override
	public void trackChanged(TrackChangedEvent event) {}
}
